package cn.home.resident.service.impl;

import cn.home.resident.domain.HomeUserHealthtag;
import cn.home.resident.mapper.HomeUserHealthtagMapper;
import cn.home.resident.service.HomeUserHealthtageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @name: HomeUserHealthtageServiceImpl
 * @author: zhangzhimin
 * @date: 2025-04-09 19:46
 **/
@Service
public class HomeUserHealthtageServiceImpl  implements HomeUserHealthtageService {
    @Autowired
    private HomeUserHealthtagMapper homeUserHealthtagMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return homeUserHealthtagMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HomeUserHealthtag record) {
        return homeUserHealthtagMapper.insert(record);
    }

    @Override
    public int insertSelective(HomeUserHealthtag record) {
        return  homeUserHealthtagMapper.insertSelective(record);
    }

    @Override
    public HomeUserHealthtag selectByPrimaryKey(Long id) {
        return  homeUserHealthtagMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HomeUserHealthtag record) {
        return  homeUserHealthtagMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HomeUserHealthtag record) {
        return  homeUserHealthtagMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<String> selecttagByuserId(Integer userId) {
        return homeUserHealthtagMapper.selecttagByuserId(userId);
    }
}
